package com.hd.sup.modules.district.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hd.sup.core.common.dto.ZTreeDTO;
import com.hd.sup.modules.district.model.Region;
import com.hd.sup.modules.district.mapper.RegionMapper;
import com.hd.sup.modules.district.service.IRegionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 区基础信息 服务实现类
 * </p>
 *
 * @author chentl123
 * @since 2020-12-28
 */
@Service
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements IRegionService {

    @Override
    public List<ZTreeDTO> getTreeData(Integer regionId) {
        return this.baseMapper.getTreeData(regionId);
    }

    @Override
    public List<Map<String, Object>> getRegionList(Region region) {
        return this.baseMapper.getRegionList(region);
    }
}
